projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d7db22
)
dm: i2c: Correct comment nits in dm_i2c_reg_read/write()
author
Simon Glass
<
[email protected]
>
Fri, 3 Jul 2015 00:15:40 +0000
(18:15 -0600)
committer
Simon Glass
<
[email protected]
>
Thu, 6 Aug 2015 02:57:51 +0000
(20:57 -0600)
Add documentation for the @dev parameter.
Signed-off-by: Simon Glass <
[email protected]
>
Acked-by: Heiko Schocher <
[email protected]
>
include/i2c.h
patch
|
blob
|
history
diff --git
a/include/i2c.h
b/include/i2c.h
index a5498a327a51ae5e68958d782cd7885c3aea9e5e..e1ad8d82cb2d3eff2227217bfd1f83cbff26ff11 100644
(file)
--- a/
include/i2c.h
+++ b/
include/i2c.h
@@
-129,6
+129,7
@@
int dm_i2c_probe(struct udevice *bus, uint chip_addr, uint chip_flags,
*
* This reads a single value from the given address in an I2C chip
*
+ * @dev: Device to use for transfer
* @addr: Address to read from
* @return value read, or -ve on error
*/
@@
-139,6
+140,7
@@
int dm_i2c_reg_read(struct udevice *dev, uint offset);
*
* This writes a single value to the given address in an I2C chip
*
+ * @dev: Device to use for transfer
* @addr: Address to write to
* @val: Value to write (normally a byte)
* @return 0 on success, -ve on error